package storage

type ItemGroup []*Item

func (list ItemGroup) Len() int {
	return len(list)
}

func (list ItemGroup) Swap(i, j int) {
	list[i], list[j] = list[j], list[i]
	return
}

func (list ItemGroup) Less(i, j int) bool {
	return list[i].Create.Before(list[j].Create)
}
